<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>GameEngine: C:/Users/Axel/Desktop/informatica/Projects/Workspace C++/Game Engine/src/Math/Transform.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GameEngine
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_transform_8cpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Transform.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_transform_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Transform.cpp</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Created on: 1-dec.-2013</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *      Author: Axel</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_transform_8h.html">Transform.h</a>&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="extra_math_8h.html">extraMath.h</a>&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_transform.html#a1d5c79e31734280bd019ae124c008321">   11</a></span>&#160;<a class="code" href="class_matrix4f.html">Matrix4f</a> <a class="code" href="class_transform.html#a1d5c79e31734280bd019ae124c008321">Transform::frustum</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m) {</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">right</a> = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.right;</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">left</a> = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.left;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a546c54dd4849722c90801e5b7381e908">top</a> = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.top;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">bottom</a> = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.bottom;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    <span class="keywordtype">float</span> n = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.zNear;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keywordtype">float</span> f = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.zFar;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> result;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    result.<a class="code" href="class_matrix4f.html#a5cedfa71f928157c3ed4516edc72cb9c">InitIdentity</a>();</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">if</span> ((right == left) ||</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        (top == bottom) ||</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        (n == f) ||</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        (n &lt; 0.0) ||</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        (f &lt; 0.0))</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;       <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = (2.0f * n) / (right - left);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = (2.0f * n) / (top - bottom);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = (right + <a class="code" href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">left</a>) / (right - left);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = (top + <a class="code" href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">bottom</a>) / (top - bottom);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = -(f + n) / (f - n);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3]= -1.0f;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = -(2.0f * f * n) / (f - n);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    result.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] =  0.0f;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="class_transform.html#ab2d9090523f74b7e65387092896b0483">   43</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_transform.html#ab2d9090523f74b7e65387092896b0483">Transform::InitScaleTransform</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>.<a class="code" href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">x</a>; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][1] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][2] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][3] = 0.0f;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][0] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>.<a class="code" href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">y</a>; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][2] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][3] = 0.0f;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = <a class="code" href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">m_scale</a>.<a class="code" href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">z</a>; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3] = 0.0f;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][0] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][1] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = 0.0f     ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] = 1.0f;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;}</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_transform.html#a3293a2067d3c56c6605f00038f85beda">   50</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_transform.html#a3293a2067d3c56c6605f00038f85beda">Transform::InitRotateTransform</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> rx, ry, rz;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> x = <a class="code" href="extra_math_8h.html#af719a85181e632c22c3b94b14a2f339e">ToRadian</a>(<a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>.<a class="code" href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">x</a>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> y = <a class="code" href="extra_math_8h.html#af719a85181e632c22c3b94b14a2f339e">ToRadian</a>(<a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>.<a class="code" href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">y</a>);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> z = <a class="code" href="extra_math_8h.html#af719a85181e632c22c3b94b14a2f339e">ToRadian</a>(<a class="code" href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">m_rotateInfo</a>.<a class="code" href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">z</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = 1.0f; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][1] = 0.0f   ; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][2] = 0.0f    ; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][3] = 0.0f;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][0] = 0.0f; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = <a class="code" href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a>(x); rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][2] = <a class="code" href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a>(x); rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][3] = 0.0f;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = 0.0f; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = -<a class="code" href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a>(x); rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = <a class="code" href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a>(x) ; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3] = 0.0f;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][0] = 0.0f; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][1] = 0.0f   ; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = 0.0f    ; rx.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] = 1.0f;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = <a class="code" href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a>(y); ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][1] = 0.0f; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][2] = -<a class="code" href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a>(y); ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][3] = 0.0f;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][0] = 0.0f   ; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = 1.0f; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][2] = 0.0f    ; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][3] = 0.0f;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = <a class="code" href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a>(y); ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = 0.0f; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = <a class="code" href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a>(y) ; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3] = 0.0f;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][0] = 0.0f   ; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][1] = 0.0f; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = 0.0f    ; ry.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] = 1.0f;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = <a class="code" href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a>(z); rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][1] = -<a class="code" href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a>(z); rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][2] = 0.0f; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][3] = 0.0f;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][0] = <a class="code" href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a>(z); rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = <a class="code" href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a>(z) ; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][2] = 0.0f; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][3] = 0.0f;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = 0.0f   ; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = 0.0f    ; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = 1.0f; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3] = 0.0f;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][0] = 0.0f   ; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][1] = 0.0f    ; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = 0.0f; rz.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] = 1.0f;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    m = rz * ry * rx;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;}</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_transform.html#a82b1f4ea9d91aecd9d863d4065cbedf5">   75</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_transform.html#a82b1f4ea9d91aecd9d863d4065cbedf5">Transform::InitTranslationTransform</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = 1.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][1] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][2] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][3] = <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>.<a class="code" href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">x</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][0] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = 1.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][2] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][3] = <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>.<a class="code" href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">y</a>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = 1.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3] = <a class="code" href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">m_worldPos</a>.<a class="code" href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">z</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][0] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][1] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = 0.0f; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] = 1.0f;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_transform.html#a0339abe2cabfb227e28b0f118c5fe5b4">   82</a></span>&#160;<span class="keyword">const</span> <a class="code" href="class_matrix4f.html">Matrix4f</a>* <a class="code" href="class_transform.html#a0339abe2cabfb227e28b0f118c5fe5b4">Transform::GetTrans</a>() {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="class_matrix4f.html">Matrix4f</a> ScaleTrans, RotateTrans, TranslationTrans, PersProjTrans;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="class_transform.html#ab2d9090523f74b7e65387092896b0483">InitScaleTransform</a>(ScaleTrans);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <a class="code" href="class_transform.html#a3293a2067d3c56c6605f00038f85beda">InitRotateTransform</a>(RotateTrans);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <a class="code" href="class_transform.html#a82b1f4ea9d91aecd9d863d4065cbedf5">InitTranslationTransform</a>(TranslationTrans);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="comment">//InitPerspectiveProj(PersProjTrans);</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <a class="code" href="class_transform.html#a1d5c79e31734280bd019ae124c008321">frustum</a>(PersProjTrans);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <a class="code" href="class_transform.html#a86df3739a688de7ac0d086b6fdbc0a22">m_transformation</a> = PersProjTrans * TranslationTrans * RotateTrans * ScaleTrans;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordflow">return</span> &amp;<a class="code" href="class_transform.html#a86df3739a688de7ac0d086b6fdbc0a22">m_transformation</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_transform.html#a8da95d8bf00a77694a5d23f988fb4eb7">   95</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_transform.html#a8da95d8bf00a77694a5d23f988fb4eb7">Transform::InitPerspectiveProj</a>(<a class="code" href="class_matrix4f.html">Matrix4f</a>&amp; m)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> ar         = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.Width / <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.Height;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a92134dc858266ee97f728cabd12038a8">zNear</a>      = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.zNear;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">zFar</a>       = <a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.zFar;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> zRange     = zNear - <a class="code" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">zFar</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">float</span> tanHalfFOV = <a class="code" href="namespacemath.html#a48ae0345b3ad8a499637ae898311e3ae">math::tan_axel</a>(<a class="code" href="extra_math_8h.html#af719a85181e632c22c3b94b14a2f339e">ToRadian</a>(<a class="code" href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">m_persProj</a>.FOV / 2.0f));</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][0] = 1.0f/(tanHalfFOV * ar); m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][1] = 0.0f;            m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][2] = 0.0f;                   m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[0][3] = 0.0;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][0] = 0.0f;                   m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][1] = 1.0f/tanHalfFOV; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][2] = 0.0f;                   m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[1][3] = 0.0;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][0] = 0.0f;                   m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][1] = 0.0f;            m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][2] = (-zNear -<a class="code" href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">zFar</a>)/zRange ; m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[2][3] = 2.0f * zFar*zNear/zRange;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][0] = 0.0f;                   m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][1] = 0.0f;            m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][2] = 1.0f;                   m.<a class="code" href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">m</a>[3][3] = 0.0;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;}</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_transform.html#a03810415859e325b0bba9689948a9ed1">  108</a></span>&#160;<a class="code" href="class_matrix4f.html">Matrix4f</a> <a class="code" href="class_transform.html#a03810415859e325b0bba9689948a9ed1">Transform::ortho</a>(<span class="keywordtype">float</span> left, <span class="keywordtype">float</span> right, <span class="keywordtype">float</span> bottom, <span class="keywordtype">float</span> top, <span class="keywordtype">float</span> n, <span class="keywordtype">float</span> f) {</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_matrix4f.html">Matrix4f</a>( <a class="code" href="class_vector4f.html">Vector4f</a>(2.0f / (right - left), 0.0f, 0.0f, 0.0f),</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <a class="code" href="class_vector4f.html">Vector4f</a>(0.0f, 2.0f / (top - bottom), 0.0f, 0.0f),</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <a class="code" href="class_vector4f.html">Vector4f</a>(0.0f, 0.0f, 2.0f / (n - f), 0.0f),</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            <a class="code" href="class_vector4f.html">Vector4f</a>((left + right) / (left - right), (bottom + top) / (bottom - top), (n + f) / (f - n), 1.0f) );</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
<div class="ttc" id="extra_math_8h_html"><div class="ttname"><a href="extra_math_8h.html">extraMath.h</a></div></div>
<div class="ttc" id="namespacemath_html_a17cbc235bd13d4cf03d23f8385c5eb14"><div class="ttname"><a href="namespacemath.html#a17cbc235bd13d4cf03d23f8385c5eb14">math::cos_axel</a></div><div class="ttdeci">double cos_axel(double x)</div><div class="ttdef"><b>Definition:</b> <a href="extra_math_8cpp_source.html#l00078">extraMath.cpp:78</a></div></div>
<div class="ttc" id="class_transform_html_ae3bec26f145edc0f927a9ba4174f9c5e"><div class="ttname"><a href="class_transform.html#ae3bec26f145edc0f927a9ba4174f9c5e">Transform::right</a></div><div class="ttdeci">float right</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00073">Transform.h:73</a></div></div>
<div class="ttc" id="class_transform_html_a1ab04255be9b0eebbbb31e8885b1fafe"><div class="ttname"><a href="class_transform.html#a1ab04255be9b0eebbbb31e8885b1fafe">Transform::zFar</a></div><div class="ttdeci">float zFar</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00081">Transform.h:81</a></div></div>
<div class="ttc" id="class_transform_html_a18b8ba2e16293bd59bda40fd68db0a5f"><div class="ttname"><a href="class_transform.html#a18b8ba2e16293bd59bda40fd68db0a5f">Transform::m_rotateInfo</a></div><div class="ttdeci">Vector3f m_rotateInfo</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00070">Transform.h:70</a></div></div>
<div class="ttc" id="class_transform_html_a35ac288d67c6416a486f9fb6e393b0cf"><div class="ttname"><a href="class_transform.html#a35ac288d67c6416a486f9fb6e393b0cf">Transform::left</a></div><div class="ttdeci">float left</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00074">Transform.h:74</a></div></div>
<div class="ttc" id="class_vector3f_html_a4aca0751716b7099b397e8c63b16bfcf"><div class="ttname"><a href="class_vector3f.html#a4aca0751716b7099b397e8c63b16bfcf">Vector3f::x</a></div><div class="ttdeci">float x</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00052">algebraBasic.h:52</a></div></div>
<div class="ttc" id="class_transform_html_ab2d9090523f74b7e65387092896b0483"><div class="ttname"><a href="class_transform.html#ab2d9090523f74b7e65387092896b0483">Transform::InitScaleTransform</a></div><div class="ttdeci">void InitScaleTransform(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00043">Transform.cpp:43</a></div></div>
<div class="ttc" id="class_transform_html_a03810415859e325b0bba9689948a9ed1"><div class="ttname"><a href="class_transform.html#a03810415859e325b0bba9689948a9ed1">Transform::ortho</a></div><div class="ttdeci">Matrix4f ortho(float left, float right, float bottom, float top, float n, float f)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00108">Transform.cpp:108</a></div></div>
<div class="ttc" id="class_transform_html_a9787eec78997d62f498cf262de3daf7c"><div class="ttname"><a href="class_transform.html#a9787eec78997d62f498cf262de3daf7c">Transform::m_scale</a></div><div class="ttdeci">Vector3f m_scale</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00068">Transform.h:68</a></div></div>
<div class="ttc" id="class_matrix4f_html_ad00c7a6c956f4ce9499a2c68914066cb"><div class="ttname"><a href="class_matrix4f.html#ad00c7a6c956f4ce9499a2c68914066cb">Matrix4f::m</a></div><div class="ttdeci">float m[4][4]</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00098">algebraBasic.h:98</a></div></div>
<div class="ttc" id="class_transform_html_a0339abe2cabfb227e28b0f118c5fe5b4"><div class="ttname"><a href="class_transform.html#a0339abe2cabfb227e28b0f118c5fe5b4">Transform::GetTrans</a></div><div class="ttdeci">const Matrix4f * GetTrans()</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00082">Transform.cpp:82</a></div></div>
<div class="ttc" id="_transform_8h_html"><div class="ttname"><a href="_transform_8h.html">Transform.h</a></div></div>
<div class="ttc" id="class_transform_html_a1d5c79e31734280bd019ae124c008321"><div class="ttname"><a href="class_transform.html#a1d5c79e31734280bd019ae124c008321">Transform::frustum</a></div><div class="ttdeci">Matrix4f frustum(Matrix4f &amp;m)</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00011">Transform.cpp:11</a></div></div>
<div class="ttc" id="class_transform_html_a86df3739a688de7ac0d086b6fdbc0a22"><div class="ttname"><a href="class_transform.html#a86df3739a688de7ac0d086b6fdbc0a22">Transform::m_transformation</a></div><div class="ttdeci">Matrix4f m_transformation</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00084">Transform.h:84</a></div></div>
<div class="ttc" id="class_transform_html_a8da95d8bf00a77694a5d23f988fb4eb7"><div class="ttname"><a href="class_transform.html#a8da95d8bf00a77694a5d23f988fb4eb7">Transform::InitPerspectiveProj</a></div><div class="ttdeci">void InitPerspectiveProj(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00095">Transform.cpp:95</a></div></div>
<div class="ttc" id="class_transform_html_aaa74b28b22538f729e6be5d3924707ac"><div class="ttname"><a href="class_transform.html#aaa74b28b22538f729e6be5d3924707ac">Transform::bottom</a></div><div class="ttdeci">float bottom</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00076">Transform.h:76</a></div></div>
<div class="ttc" id="namespacemath_html_a48ae0345b3ad8a499637ae898311e3ae"><div class="ttname"><a href="namespacemath.html#a48ae0345b3ad8a499637ae898311e3ae">math::tan_axel</a></div><div class="ttdeci">double tan_axel(double x)</div><div class="ttdef"><b>Definition:</b> <a href="extra_math_8cpp_source.html#l00088">extraMath.cpp:88</a></div></div>
<div class="ttc" id="namespacemath_html_a767674863a96196fc201a2e0e83ebde8"><div class="ttname"><a href="namespacemath.html#a767674863a96196fc201a2e0e83ebde8">math::sin_axel</a></div><div class="ttdeci">double sin_axel(double x)</div><div class="ttdef"><b>Definition:</b> <a href="extra_math_8cpp_source.html#l00083">extraMath.cpp:83</a></div></div>
<div class="ttc" id="class_matrix4f_html"><div class="ttname"><a href="class_matrix4f.html">Matrix4f</a></div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00095">algebraBasic.h:95</a></div></div>
<div class="ttc" id="class_transform_html_a92134dc858266ee97f728cabd12038a8"><div class="ttname"><a href="class_transform.html#a92134dc858266ee97f728cabd12038a8">Transform::zNear</a></div><div class="ttdeci">float zNear</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00080">Transform.h:80</a></div></div>
<div class="ttc" id="class_vector4f_html"><div class="ttname"><a href="class_vector4f.html">Vector4f</a></div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00013">algebraBasic.h:13</a></div></div>
<div class="ttc" id="class_vector3f_html_a8a602e2ee75126feb520c2aa27e7eff5"><div class="ttname"><a href="class_vector3f.html#a8a602e2ee75126feb520c2aa27e7eff5">Vector3f::y</a></div><div class="ttdeci">float y</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00053">algebraBasic.h:53</a></div></div>
<div class="ttc" id="class_transform_html_a86dbbd976f558680301e05ed5e0b89c1"><div class="ttname"><a href="class_transform.html#a86dbbd976f558680301e05ed5e0b89c1">Transform::m_worldPos</a></div><div class="ttdeci">Vector3f m_worldPos</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00069">Transform.h:69</a></div></div>
<div class="ttc" id="class_transform_html_a546c54dd4849722c90801e5b7381e908"><div class="ttname"><a href="class_transform.html#a546c54dd4849722c90801e5b7381e908">Transform::top</a></div><div class="ttdeci">float top</div><div class="ttdef"><b>Definition:</b> <a href="_transform_8h_source.html#l00075">Transform.h:75</a></div></div>
<div class="ttc" id="class_transform_html_a82b1f4ea9d91aecd9d863d4065cbedf5"><div class="ttname"><a href="class_transform.html#a82b1f4ea9d91aecd9d863d4065cbedf5">Transform::InitTranslationTransform</a></div><div class="ttdeci">void InitTranslationTransform(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00075">Transform.cpp:75</a></div></div>
<div class="ttc" id="extra_math_8h_html_af719a85181e632c22c3b94b14a2f339e"><div class="ttname"><a href="extra_math_8h.html#af719a85181e632c22c3b94b14a2f339e">ToRadian</a></div><div class="ttdeci">#define ToRadian(x)</div><div class="ttdef"><b>Definition:</b> <a href="extra_math_8h_source.html#l00015">extraMath.h:15</a></div></div>
<div class="ttc" id="class_matrix4f_html_a5cedfa71f928157c3ed4516edc72cb9c"><div class="ttname"><a href="class_matrix4f.html#a5cedfa71f928157c3ed4516edc72cb9c">Matrix4f::InitIdentity</a></div><div class="ttdeci">void InitIdentity()</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8cpp_source.html#l00291">algebraBasic.cpp:291</a></div></div>
<div class="ttc" id="class_vector3f_html_a470cff51eb6463672be518f5af4e26db"><div class="ttname"><a href="class_vector3f.html#a470cff51eb6463672be518f5af4e26db">Vector3f::z</a></div><div class="ttdeci">float z</div><div class="ttdef"><b>Definition:</b> <a href="algebra_basic_8h_source.html#l00054">algebraBasic.h:54</a></div></div>
<div class="ttc" id="class_transform_html_a3293a2067d3c56c6605f00038f85beda"><div class="ttname"><a href="class_transform.html#a3293a2067d3c56c6605f00038f85beda">Transform::InitRotateTransform</a></div><div class="ttdeci">void InitRotateTransform(Matrix4f &amp;m) const </div><div class="ttdef"><b>Definition:</b> <a href="_transform_8cpp_source.html#l00050">Transform.cpp:50</a></div></div>
<div class="ttc" id="class_transform_html_a583d5ac1c857829cfea6fb6cb77244a7"><div class="ttname"><a href="class_transform.html#a583d5ac1c857829cfea6fb6cb77244a7">Transform::m_persProj</a></div><div class="ttdeci">struct Transform::@1 m_persProj</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_3813464283bee2267f39dcf080a84d74.html">Math</a></li><li class="navelem"><a class="el" href="_transform_8cpp.html">Transform.cpp</a></li>
    <li class="footer">Generated on Fri Dec 13 2013 19:38:40 for GameEngine by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
